package ace.module.captcha.sms.core.impl.manager;

import ace.cmp.data.spring.data.jdbc.querydsl.rsql.core.manager.DtoManager;
import ace.module.captcha.sms.api.model.dto.CaptchaSmsItemDto;
import ace.module.captcha.sms.core.impl.dao.entity.CaptchaSmsItem;

/**
* 验证码 spring data jdbc querydsl rsql manager.
*
* @author Caspar
*/
public interface CaptchaSmsItemManager extends DtoManager<CaptchaSmsItem, Long, CaptchaSmsItemDto> {

  void remove(Long captchaSmsAppId, String phoneNumber);

  CaptchaSmsItem getByCaptchaSmsAppIdAndPhone(Long captchaSmsAppId, String phoneNumber);

  CaptchaSmsItemDto getDtoByCaptchaSmsAppIdAndPhone(Long captchaSmsAppId, String phoneNumber);

}
